<?php
/**
 * OaApplication数据模型
 */
class OaApplicationTable {
	// 数据表模型配置
	public $config = [
			'name' => 'oa_application',
			'title' => '审批申请',
			'search_key' => '',
			'add_button' => 1,
			'del_button' => 1,
			'search_button' => 1,
			'check_all' => 1,
			'list_row' => 0,
			'addon' => 'OaSystem'
	];
	
	// 列表定义
	public $list_grid = [ ];
	
	// 字段定义
	public $fields = [
			'appid' => [
					'title' => '小程序appid',
					'field' => 'varchar(200) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'type' => [
					'title' => '类型',
					'field' => 'char(50) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'applyer' => [
					'title' => '申请人ID',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'placeholder' => '请输入内容'
			],
			'dept_id' => [
					'title' => '部门ID',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'description' => [
					'title' => '描述',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'statement' => [
					'title' => '声明',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'pictures' => [
					'title' => '图片',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'status' => [
					'title' => '状态',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'signature' => [
					'title' => '签名',
					'field' => 'varchar(255) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'step' => [
					'title' => '级数',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'submit_date' => [
					'title' => '提交日期',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'approve_date' => [
					'title' => '通过日期',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'approver' => [
					'title' => '当前审批人',
					'field' => 'int(10) NULL',
					'type' => 'string',
					'placeholder' => '请输入内容'
			],
			'is_read' => [
					'title' => '已读',
					'field' => 'tinyint(2) NOT NULL',
					'type' => 'string',
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'is_del' => [
					'title' => '撤销',
					'type' => 'num',
					'field' => 'tinyint(2) NULL',
					'placeholder' => '请输入内容'
			],
			'applyer_lvl' => [
					'title' => '申请人行政级别',
					'type' => 'num',
					'field' => 'int(10) NOT NULL',
					'remark' => 'oa_emp_admin_level 主键ID',
					'is_show' => 1,
					'is_must' => 1,
					'placeholder' => '请输入内容'
			],
			'apply_no' => [
					'title' => '申请单号',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'content' => [
					'title' => '概要内容',
					'type' => 'string',
					'field' => 'varchar(1024) NULL',
					'remark' => 'Josn={traffic:1110,catering:1000,hotel:2000,trianing:20000,other:5000,total:xxxxx....}',
					'is_show' => 1,
					'is_must' => 0
			],
			'flow_id' => [
					'title' => '流程ID',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'remark' => 'oa_process_flow 主键ID',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'hops' => [
					'title' => '申请单跳级次数',
					'type' => 'num',
					'field' => 'int(10) NULL',
					'remark' => '审批流程中每跳一次数，hops + 1',
					'placeholder' => '请输入内容'
			],
			'subtype' => [
					'title' => '子类型',
					'type' => 'string',
					'field' => 'varchar(255) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'total_money' => [
					'title' => '总金额',
					'type' => 'num',
					'field' => 'float(10) NULL',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'start_time' => [
					'title' => '申请起始时间',
					'type' => 'datetime',
					'field' => 'int(10) NULL',
					'remark' => '申请行为发生时间',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			],
			'end_time' => [
					'title' => '结束时间',
					'type' => 'datetime',
					'field' => 'int(10) NULL',
					'remark' => '申请行为结束时间',
					'is_show' => 1,
					'placeholder' => '请输入内容'
			]
	];
}	